package me.sdevil507.biz.fruit.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.sdevil507.supports.jpa.BaseJpaSnowflakeIdAndAuditEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import java.util.Date;

/**
 * @description: 微信小程序 成果录入（简易版）
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "biz_fruit_wx_applet")
public class FruitWxAppletPO extends BaseJpaSnowflakeIdAndAuditEntity {

    @Column(columnDefinition = "text")
    @Lob
    private String content;

    @Column
    private String mobile;

    @Column
    private String type;

    @Column
    private String address;

    @Column
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date pubTime;

    @Column
    private String picUrl;

    /**
     * 是否处理
     */
    @Column
    private Boolean isDeal= false;
}
